package com.jiyun.purse.mapper;

import com.jiyun.pojo.purse.Sos;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface SosMapper {

    @Select("select * from user_sos where user_id = #{userId} and is_delete = 0")
    Sos findSos(Integer userId);



    @Insert("insert into user_sos(name,phone,is_delete,user_id) values (#{name},#{phone},#{isDelete},#{userId})")
    int addSos(Sos sos);
}
